package pers.jg.rrsserver.entity

import jakarta.persistence.*
import java.sql.Timestamp
import java.time.Instant

@Entity
@Table(name = "policy", schema = "rrs")
open class Policy {
    @Id
    @Column(name = "id", nullable = false, length = 45)
    open var id: String? = null

    @Column(name = "title", length = 45)
    open var title: String? = null

    @Lob
    @Column(name = "content")
    open var content: String? = null

    @Column(name = "post_time")
    open var postTime: Timestamp? = null

    @Column(name = "author", length = 45)
    open var author: String? = null

    @Column(name = "pageview")
    open var pageview: Int? = null

    @Column(name = "cover_img", length = 45)
    open var coverImg: String? = null
}